<?php
/**
 * 默认配置
 * @copyright reginx.com
 * $Id$
 */
return array(
    'default'               => false,
    'charset'               => 'utf-8',
    'lang'                  => 'zh-cn',
    'default_mod'           => 'index',
    'default_act'           => 'index',
    'mod_msg'               => '@default:msg.html',
    'mod_404'               => '@default:404.html',
    'token'                 => true,
    'token_var'             => 'RGXTOKEN',
    'time_offset'           => 8,
    'thumb_width'           => 100,
    'thumb_height'          => 80,
    'tpl'                   => 'default',
    'tpl_ttl'               => 1,           // 0 no , 1 auto
    'tpl_pre'               => '{',
    'tpl_suf'               => '}',
    'url'                   => array(
        'type'              => 2,
        'interval'          => '/',
        'suf'               => '.html',
        'rewrite'           => 0,
    ),

    'cache'                 => array(
        'type'              => 'mem',
        // default file cache
        'file'              => array(),
        // mongo
        'mongo'             => array(
            array(
                'host'      => 'localhost',
                'user'      => 'reginx',
                'passwd'    => 'reginx',
                'port'      => '27017',
                'db'        => 'reginx'
            )
        ),
        // memcached
        'mem'               => array(
            array(
                'host'      => '127.0.0.1',
                'port'      => '11211'
            )
        )
    ),

    'db'                    => array(
        'class'             => 'mysql',
        'mysql'            => array(
            0               => array(
                'host'      => 'localhost:3306',
                'user'      => 'root',
                'passwd'    => 'lan7',
                'name'      => 'reginx3',
                'charset'   => 'utf8',
                'pre'       => 'pre_',
            )
        )
    ),

    'upload'                => array(
        'type'              => 'JPG|GIF|JPEG|PNG|BMP|ZIP|RAR' ,
        'max_size'          => '10m',
    ),

    'sess'                  => array(
        'class'             => 'default',
        'server'            => array(
            'ttl'           => 600
        )
    )
);
?>